package com.lsj.controller;

import com.lsj.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    HelloService helloService;


    @GetMapping("/helloGetDetail")
    public String helloGetDetail(){
        String hello = helloService.hello();
        return hello;
    }

    @GetMapping("/hello")
    public String hello(){
        return "hello";
    }

    @GetMapping("/success")
    public String success(){
        return "redirect:/hello";
    }

}
